package com.zy.mc_module.utils.loadsir;

import android.content.Context;
import android.view.View;
import com.kingja.loadsir.callback.Callback;
import com.zy.mc_module.R;

/**
 * Created on 18/10/22
 * 加载页
 */
public class LoadingCallback extends Callback {
    @Override
    protected int onCreateView() {
        return R.layout.layout_loading;
    }

    public boolean getSuccessVisible() {
        return super.getSuccessVisible();
    }

    @Override
    public View getRootView() {

        return super.getRootView();
    }

    @Override
    public void onAttach(Context context, View view) {
        super.onAttach(context, view);
        //ProgressBar progressBar = view.findViewById(R.id.loading_progressbar);
    }

    /***
     * 禁止loading页点击事件(防止一直点击,一直重复加载)
     */
    protected boolean onReloadEvent(Context context, View view) {
        return true;
    }
}
